{template 'header'}
<body>
<div class="x-body">
    <blockquote class="layui-elem-quote">欢迎管理员：
        <span class="x-red">{$_W['username']}</span>！当前时间:<span id="time"></span>  <a onclick="parent.x_admin_add_to_tab('尧勤官网','https://www.yqin.cn',true)" style="color: red" href="javascript:;">官网</a>
    </blockquote>
    <fieldset class="layui-elem-field">
        <legend>数据统计</legend>
        <div class="layui-field-box">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                            <div carousel-item="">
                                <ul class="layui-row layui-col-space10 layui-this">
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>今日任务/总任务    </h3>
                                            <p>
                                                <cite>{$tasknow[0]['tasknow']}/{$task[0]['tasksum']}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>今日已抢/总接受</h3>
                                            <p>
                                                <cite>{$receivenow[0]['receivenow']}/{$task[0]['receivesum']}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>待审任务/所有提交</h3>
                                            <p>
                                                <cite>{$receive[0]['daisum']}/{$receivesum[0]['receivesum']}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>已提现/所有佣金</h3>
                                            <p>
                                                <cite>{if $cash[0]['cask_out_money_sum'] == ''}0.00{else}{$cash[0]['cask_out_money_sum']}{/if}/{if $yong_money[0]['yong_money_sum'] == 0}0.00{else}{$yong_money[0]['yong_money_sum']}{/if}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>未提现/总入账</h3>
                                            <p>
                                                <cite>{if $user[0]['tixian_money'] == ''}0.00{else}{$user[0]['tixian_money']}{/if}/{if $paymoney[0]['paymoney'] == 0}0.00{else}{$paymoney[0]['paymoney']}{/if}</cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>升级会员/所有会员</h3>
                                            <p>
                                                <cite>{if $user[0]['vipsum'] == '' }0{else}{$user[0]['vipsum']}{/if}/{$user[0]['usersum']}</cite></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>开发团队</legend>
        <div class="layui-field-box">
            <table class="layui-table">
                <tbody>
                <tr>
                    <th>版权所有</th>
                    <td>尧勤软件
                        <a href="http://www.yqin.cn/" class='x-a' target="_blank">访问官网</a></td>
                </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
</div>
<script type="text/javascript">
    //获取当前时间并拼接放到div中的函数
    function nowTime(){
        var nowDate = new Date();
        var year = nowDate.getFullYear();
        var month = nowDate.getMonth()+1;
        month = month>9 ? month : "0" + month;
        var date = nowDate.getDate();
        date = date>9 ? date : "0" + date;
        var hour = nowDate.getHours();
        hour = hour>9 ? hour : "0" + hour;
        var miunte = nowDate.getMinutes();
        miunte = miunte>9 ? miunte : "0" + miunte;
        var second = nowDate.getSeconds();
        second = second>9 ? second : "0" + second;

        $("#time").text(year+"年"+month+"月"+date+"日"+hour+"时"+miunte+"分"+second+"秒");
    }
    //加载后执行一次函数，以后每秒再执行
    $(function(){
        nowTime();
        setInterval("nowTime()", 1000);
    });
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>